package org.phoenixframework.common.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.phoenixframework.common.entity.base.BaseEntity;

/**
 * <p>
 * 文件表
 * </p>
 *
 * @author doublelife
 * @since 2021-07-03
 */
@Data
@EqualsAndHashCode(callSuper = true)
@TableName("sys_file")
@ApiModel(value = "SysFile对象", description = "文件表")
public class SysFile extends BaseEntity {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "唯一索引Id")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty(value = "文件名称")
    @TableField("name")
    private String name;

    @ApiModelProperty(value = "文件名")
    @TableField("filename")
    private String filename;

    @ApiModelProperty(value = "存储对象名称")
    @TableField("object_name")
    private String objectName;

    @ApiModelProperty(value = "类型")
    @TableField("type")
    private String type;

    @ApiModelProperty(value = "文件存储路径")
    @TableField("path")
    private String path;

    @ApiModelProperty(value = "文件大小")
    @TableField("size")
    private Long size;


}
